package com.ruoyix.im.domain.bo;

import com.ruoyix.common.core.domain.BaseEntity;
import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 聊天群成员业务对象 im_chat_group_user
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImChatGroupUserBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 群ID
     */
    @NotNull(message = "群ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long groupId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 审核用户ID
     */
    @NotNull(message = "审核用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long verifyUserId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 是否管理员[0:否，1:是]
     */
    @NotNull(message = "是否管理员[0:否，1:是]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer adminFlag;

    /**
     * 用户状态[0:未审核，1:审核通过，2:禁言]
     */
    @NotNull(message = "用户状态[0:未审核，1:审核通过，2:禁言]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userStatus;



}
